package com.example.androidproject.bean

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import androidx.databinding.ObservableField
import com.example.androidproject.BR

class DataBean:BaseObservable{
 private var observableFieldName = ObservableField<String>()
 var name:String?=""
//     @Bindable get
// set(value) {
//    if (name!=value){
//     field =value
//     notifyChange()
//    }
// }

 var path:String?=""

 val isPlayer:Boolean = false
 constructor(name:String,  path:String, isPlayer:Boolean = false){
  this.name = name
  this.path =path
 }
 @JvmName("setName1")
 fun setName(name: String){
  this.name  =name
  notifyChange()
 }



 }